package com.clw.service;

import com.clw.dataobject.Produce;
import com.clw.dataobject.ProduceDetail;
import com.clw.dto.ProduceDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2018-03-01.
 */
public interface ProduceService {
    Page<Produce> findPage(String proNo, String producer, String startTime, String endTime, Pageable pageable);

    Long getSize(String proNo, String producer, String startTime, String endTime);

    List<ProduceDetail> getDetail(String purNo);

    Produce findOne(Integer id);

    ProduceDTO add(ProduceDTO dto);

    ProduceDTO update(ProduceDTO dto);

    Produce del(Produce produceManage);

    Produce save(Produce manage);

    Produce review(Produce manage);
}
